package com.xqboss.apps.dto.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * <p>
 *     申请退单请求
 * </p>
 * @author Trent
 * @date 2023/9/7
 */
@Data
@ApiModel
public class ApplyRefundDto {

    @ApiModelProperty("订单ID")
    @NotNull(message = "请输入退款订单号")
    private Long orderId;

    @ApiModelProperty("申请金额")
    @Positive(message = "退款金额只能为正数")
    @NotNull(message = "请输入退款金额")
    private BigDecimal applyAmount;

    @ApiModelProperty("申请原因")
    private String applyReason;

    @ApiModelProperty("退款方式")
    private String payType;

    @ApiModelProperty("退款账号")
    private String payAccount;

}
